//
//  DownNumFileUtil.h
//  handbooklite
//
//  Created by bao_wsfk on 12-8-31.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//
//该类是用来编辑存放下载码的文件 downnum.json 

#import <Foundation/Foundation.h>

@interface DownNumFileUtil : NSObject{
    
@private
    NSFileManager *_fm;
@public
    NSString *_downnumFilePath;
}
@property (nonatomic, retain) NSFileManager *fm;
@property (nonatomic, readonly) NSString *downnumFilePath;

+ (id)newInstance;

//判断downnum.json是否存在
- (BOOL)isHasFile;

//向downnum.json文件中添加下载码记录
- (BOOL)addDownNum:(NSString *)downnum;

//判断downnum.json文件中是否存在downnum
- (BOOL)isHasDownNum:(NSString *)downnum;

- (NSArray *)downNums;

@end
